import axios from '@/axios'

export const getUserLevelListAPI = (page) => {
  return axios.get(`/admin/user_level/${page}`)
}

export const createUserLevelListAPI = (data) => {
  return axios.post('/admin/user_level', data)
}
export const updateUserLevelListAPI = (id, data) => {
  return axios.post(`/admin/user_level/${id}`, data)
}

export const deleteUserLevelListAPI = (id) => {
  return axios.post(`/admin/user_level/${id}/delete`)
}

export const updateUserLevelStatusAPI = (id, status) => {
  return axios.post(`/admin/user_level/${id}/update_status`, {
    status,
  })
}
